<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="java.util.Properties"%>
<%@page import="java.util.Enumeration"%>
<% 
	String propAttributeName = (String) request.getParameter("propName");
	String selectedName = (String) request.getParameter("selectedName");
	Properties prop = (Properties) request.getAttribute(propAttributeName);
	Enumeration<Object> propIt = prop.keys();
	String key = null;
	while (propIt.hasMoreElements())
	{
		key = (String) propIt.nextElement();%>
		<option value="<%= key %>" <%= key.equals(selectedName)? "selected":"" %> ><%= key  %></option>
	<% }
%>